import openai
from openai import OpenAI
import base64

openai.api_key = "sk-6S0PtpNia71gjcfwSsDPsJ9mGqsVPr2XRQzAx1dHbJS7RW4t"
openai.api_base="https://chatapi.littlewheat.com/v1"

client = OpenAI(api_key=openai.api_key,base_url=openai.api_base)
response=client.images.generate(
    model="dall-e-3",
    prompt="生成一张阳光明媚的有山有水的风景照",
    size="1024x1024",
    response_format="url",
    quality="standard",
    n=1
)
print(response)